
#import <UIKit/UIKit.h>

/*************************************  HLTabBarController *************************************/
@class HLTabBar,SPVerticalLayoutBtn;

@interface HLTabBarController : UITabBarController
@property (nonatomic,strong) HLTabBar *customTabBar;

/**初始化一个子控制器*/
- (void)setupChildViewController:(UIViewController *)childVC  title:(NSString *)title imageName:(NSString *)imageName selectedImageName:(NSString *)selectedImageName;
@end



/*************************************  HLTabBar *************************************/

@protocol HLTabBarDelegate <NSObject>

@optional
- (void)tabBar:(HLTabBar *)tabBar didSelectedButtonFrom:(NSInteger)from to:(NSInteger)to;

@end


@interface HLTabBar : UIView

/**用来装通过Item添加的tabBarButton */
@property (nonatomic,strong) NSMutableArray *tabBarButtons;
@property (nonatomic,strong) UIColor *item_textColor_nomal;
@property (nonatomic,strong) UIColor *item_textColor_selected;
@property (nonatomic,strong) UIFont *item_font;
@property (nonatomic,strong) id<HLTabBarDelegate> delegate;


- (void)addTabBarButtonWithItem:(UITabBarItem *)item;
- (void)clickButton:(SPVerticalLayoutBtn *)button;

@end



/*************************************  SPVerticalLayoutBtn *************************************/
@interface SPVerticalLayoutBtn : UIButton
/**接收外部传进来的item*/
@property (nonatomic,strong) UITabBarItem *item;
@property (nonatomic,strong) UIColor *textColor_nomal;
@property (nonatomic,strong) UIColor *textColor_selected;
@property (nonatomic,strong) UIFont *font;

@end
